package net.lainiao.morethread.Chapter5.demo5;

import java.util.Random;

/**
 * Created by Administrator on 2017/3/6.
 */
public class ArrayGenerator {
    public int[] generateArray(int size){
        int array[]=new int[size];
        Random random=new Random();
        for (int i = 0; i < size; i++) {
            array[i]=random.nextInt(10);
        }
        return array;
    }


}
